<!DOCTYPE html>
  <html>
  <head>
      <meta charset="utf-8">
      <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
      <meta name="format-detection" content="telephone=no" />
      <title>联系我们</title>
      <link rel="stylesheet" type="text/css" href="../css/api.css"/>
      <link rel="stylesheet" type="text/css" href="../css/style.css"/>
      <style>
          .contactUs{width: 100%;}

          .contact{display: flex;flex-direction: column;justify-content:center;padding-top: 40%;align-items: center;}
          .contact img{width: 170px;height: 141px;margin-bottom: 25px;}
          .contact span{font-size: 16px;color: 000}
      </style>
  </head>
  <body>
    <div class="contactUs">
      <div class="returnBox">
        <div class="return"> <img src="../image/return.png" onclick="api.closeWin()"> <span class="us">联系我们</span></div>

      </div>
      <div class="contact">
        <img src="../image/contact.png" alt="">
        <span id="contact"></span>
      </div>
    </div>
  </body>
  <script type="text/javascript" src="../script/api.js"></script>
  <script type="text/javascript" src="../script/encrypt.js"></script>
  <script type="text/javascript">
      apiready = function(){
        $api.fixStatusBar($api.dom('.contactUs'));
        var userid = $api.getStorage('userID');
        var base = new Base64();
        let json;
        if(userid){
          json = {userID:userid}
        }else{
          json = {userID:'00000000-0000-0000-0000-000000000000'}
        }

        let parameter = base.encode(JSON.stringify(json));
        let signValue = parameter + secretKey
        let sign = signValue.MD5(32)
        $api.post(url+'getContactInfo.ashx', {values:{parameter:parameter,sign:sign}}, function(ret){
          if(ret.code == 200){
            var contact = ret.data.ParamList[0].paraValue

            $api.html($api.dom('#contact'), contact);


          }
        })

      };
  </script>
  </html>
